package csc.fresher_group2.dao;

import java.sql.SQLException;
import java.sql.Statement;
import java.util.List;

import csc.fresher_group2.model.Account;

public interface IAccountDAO {
	
	/*
	 * register
	 */
	boolean register(Account acc);
	
	/*
	 * login 
	 */
	boolean login(String userName, String password);
	
	/*
	 * 
	 */
	Account getAccount(String userName);
	
	/*
	 *	activeCode is received via email 
	 */
	boolean activeAccount(String userName, String activeCode);
	
	/*
	 * recover password
	 */
	boolean recoverAccount(String userName, String authenCode, String newPassword);
	
	/*
	 * update info
	 */
	boolean updateInfo(String username, String firstName, String lastName, String email, String phone);
	
	/*
	 * get list userName
	 */
	List<String> getListUserName();	
	List<String> getListEmail();	
	
	/*
	 * change password
	 */
	boolean changePassword(String username, String password);
}
